package com.dao;

import com.entity.Grade;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GradeDao {

    List<Grade> getAll();

    List<Grade> getByName(String name);

    Grade getOne(Integer id);

    int add(Grade grade);

    int update(Grade grade);

    int delete(Integer id);
}
